PoD: Check refcount, not type count when reclaiming zero pages
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 29 Jan 2009 16:40:48 +0000 (16:40 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 29 Jan 2009 16:40:48 +0000 (16:40 +0000)
commit441959385830ac73376a0502b036fa1de4e660fd
tree0ea59596e844d0c6015ec337b383e1f1683111b6
parent597edba986d2516dfa478f5c4ec34325da49283b
PoD: Check refcount, not type count when reclaiming zero pages

Check the page refcount rather than the type count when deciding if a
page is still mapped.

This catches pages which are mapped by qemu; it also removes the need
for gnttab_is_granted().

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/x86/mm/p2m.c
xen/common/grant_table.c
xen/include/xen/grant_table.h